package com.ruiysoft.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazengguang
 * @since 2019-04-13
 */
@TableName("sys_shop_module_relation")
public class SysShopModuleRelation extends Model<SysShopModuleRelation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("shop_id")
    private Long shopId;

    @TableField("module_id")
    private Long moduleId;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    private Long version;

    @TableField(exist = false)
    private String moduleName;

    @TableField(exist = false)
    private String moduleCode;

    public Long getId() {
        return id;
    }

    public SysShopModuleRelation setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public SysShopModuleRelation setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public Long getModuleId() {
        return moduleId;
    }

    public SysShopModuleRelation setModuleId(Long moduleId) {
        this.moduleId = moduleId;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public SysShopModuleRelation setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public SysShopModuleRelation setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public Long getVersion() {
        return version;
    }

    public SysShopModuleRelation setVersion(Long version) {
        this.version = version;
        return this;
    }

    public String getModuleName() {
        return moduleName;
    }

    public SysShopModuleRelation setModuleName(String moduleName) {
        this.moduleName = moduleName;
        return this;
    }

    public String getModuleCode() {
        return moduleCode;
    }

    public SysShopModuleRelation setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysShopModuleRelation{" +
        "id=" + id +
        ", shopId=" + shopId +
        ", moduleId=" + moduleId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", version=" + version +
        "}";
    }
}
